<?
//includes all the files needed
$pagename= "checkIn";

//gets the GET veriables and reports status

$status = $_GET['status'];

switch ($status)
{
case 'ready' :


echo '<h4><FONT COLOR="green">Ready for Check-in Enter or Scan 12 Digit barcode now</h4></font>' ;

break;

case 'checked':

echo '<h4><FONT COLOR="#99FF00">SUCCESS: The book </FONT><FONT COLOR="white">' ;
echo $_GET['bookname'];
echo ' </font><FONT COLOR="#99FF00">was checked in</font>'; 
echo ' </font><FONT COLOR="#99FF00">Under Barcode<FONT COLOR="white"> ';
echo $_GET['bar'];
echo ' </font><FONT COLOR="#99FF00">You can Check in another book now!</font>';
echo '</h4></font>';

break;
case 'notfound' :

echo '<h4><FONT COLOR="red">ERROR: No Book was found under barcode ' ;
echo $_GET['bar'];
echo ' please verify the barcode you entered </h4></font>'; 

break;
case 'notout' :

echo '<h4><FONT COLOR="red">ERROR: The Book Under Barcode ' ;
echo $_GET['bar'];
echo ' is not checked out please verify the barcode</h4></font>'; 

break;
}
?>
<body
onLoad="self.focus();document.in.barcode.focus()"
>
<script type="javascript">
<body onLoad="document.forms[0].in.barcode.focus();">
</script>
<form action="checkin/checkin-go.php" name="in" method="post">
12 Digit Bar Code:   <input name="barcode" type="text" size="12" TABINDEX="1" id="barcode"/><br>
<input type="submit" value="Checkin"/>
</form>
</body>